

<html>
<head>
<title>ARC Page</title>
<style type="text/css">
table,td,th
{
background-color: #eceff6;  
border: 1px solid #d4dae8;
}
table
{
width:40%;
}

table.center {margin-left:auto; margin-right:auto;}
#wrap{
width: (width of form)px;
margin: auto;
}
</style>
</head>
<body>
<form action="insert.php" method="post">
<p>Comment:</p>
<TEXTAREA NAME="comments" COLS=40 ROWS=6></TEXTAREA>
<input type="submit" class = "altButtonFormat" />
</form>
</body>
<?php
//Connects to database from go daddy
mysql_connect("fdb3.awardspace.com", "891782_chris", "design3") or die(mysql_error());
//Connect to database aruval3
mysql_select_db("891782_chris") or die(mysql_error());

//Create variable $comm and set it to the myaql query which represents the contents of the table named Test
$comm = mysql_query("SELECT * FROM Test");
//For loop to go through the contents of the table
echo '<table class="center">';
while($row = mysql_fetch_array($comm))
{


//Writes back data from table onto website
 echo '<tr>';
echo '<td>' .$row["Name"]. "<br />", .$row["Sex"]. "<br />", .$row["Comment"]. "<br />", "posted on ", $row["Date"]. "<br />", "<br />", '</td>';
 echo '</tr>';

}
echo '</table>';
?>
</html>